<a href="<?php echo Yii::app()->createUrl('site/viewBaiGiang', array('id'=>$data->id)) ?>">
<div class="search-baigiang-view">
    <table>
            <tr>
                    <td style="width:160px">
                            <?php echo CHtml::image(
                                                $data->thumbnailUrl?
                                                        Utils::createAbsoluteUrl($data->thumbnailUrl):
                                                        Path::getDefaultBaiGiangThumbnailUrl(),
                                                '',
                                                array(
                                                        'width'=>'160px',
                                                        'height'=>'160px'
                                                )
                                        ) 
                            ?>
                    </td>
                            
                    <td style="vertical-align:top">
                            <div style="font-weight: bold;font-size: 16px;margin-bottom: 5px"><?php echo $data->name ?></div>
                            <div style="margin-bottom: 5px"><?php echo $data->description ?></div>
                            <div><b>Send by:</b> <?php echo $data->getCreatorModel()->username; ?></div>
                    </td>
            </tr>
    </table>    
</div>
</a>
